package cn.slf.ph.dao;

import cn.slf.ph.entity.Community;
import cn.slf.ph.entity.Shop;

import java.util.List;
import java.util.Map;

public interface CommunityDao {
    // 增加 删除 修改  查询  查询总条数
    public int insert(Community community);
    public int delete(int communityId);
    public int update(Community community);
    public List<Community> selectAll(Map<String,String> map);
    public List<Shop> associatedStores(Map<String,String> map);
    public int associatedStoresCount(Map<String,String> map);
    public int selectCount(Map<String,String> map);
    public List<Shop> findShopListByAdd(Map<String,String> map);
    public int findShopListByAddCount(Map<String,String> map);
    public int addAssociatedStores(int panghuCommunityId,int shopId);
    public int associatedCount(int communityId);
    public int associatedupdate(int communityId);
    public int associatedStoresRemove(int shopId);
}
